package demo1;
public class QuestionOne {
    public static String cal(int x,int y){
        if (x<=0 || y<=0){
            return "输入不符合要求。";
        }else if (x == y){
            return "可以构建圆形或者正方形";
        }else if (Math.abs(x-y)>2 && Math.abs(x-y)<=5){
            return "可以构建椭圆";
        }else if (Math.abs(x-y)>5){
            return "可以构建矩形";
        }else {
            return "可以构建长方形";
        }
    }
}
